<?php
    include './base.php';
    $sid = $_POST["sid"];
    $updsname = $_POST["updsname"];
    $updbuildingText = $_POST["updbuildingText"];
    $updroomidText = $_POST["updroomidText"];
    $updbedidText = $_POST["updbedidText"];
    $updcollegeText = $_POST["updcollegeText"];
    $updclazzText = $_POST["updclazzText"];
    $sex = $_POST["sex"];
    $updstudentnum = $_POST["updstudentnum"];
    $updphone = $_POST["updphone"];
    $updtelphone = $_POST["updtelphone"]; 
    $sql = "update student set sname = '$updsname',building = '$updbuildingText',roomid = '$updroomidText',bedid = '$updbedidText',college = '$updcollegeText',clazz = '$updclazzText',gender = '$sex',studentnum = '$updstudentnum',phone = '$updphone',telphone = '$updtelphone' where sid = '$sid'";
    mysql_query($sql);
    print_r("修改成功!");
?>